// 提交 mutations是更改Vuex状态的唯一合法方法
 // 登录
 export const init = (state, name) => { 
    //初始化左侧菜单栏显示情况（isSlide==true,isSlideInfo==false为初始值）
   state.isSlide = true;
   state.isSlideInfo = false;
  
 }
 export const id = (state, name) => {
   // 把当前点击患者ID传入Vuex
   state.ID = name;
 }
 export const patientName = (state, name) => {
   // 把当前点击患者名字传入Vuex
   state.patientName = name;
 }
 export const patientSex = (state, name) => {
   // 把当前点击患者性别传入Vuex
   state.patientSex = name;
 }
  export const patientCondition = (state, name) => {
    // 把当前点击患者病情传入Vuex
    state.patientCondition = name;
  }
// 登出
export const logout = (state, name) => { 
    // 这个同理
  state.token = false;
  state.userName = '';
}
 // 管理左侧菜单是在科还是用户详情
export const slideinfo = (state, name) => { 
  state.isSlideInfo = true;
  state.isSlide = false;
}
// 管理左侧菜单是在科还是用户详情
export const slide = (state, name) => { 
  state.isSlideInfo = false;
  state.isSlide = true;
}
// 当前点击患者体征状态数据
export const signsData = (state, name) => {
  state.signsData = name;
}
// 当前点击患者状态数据
export const stateData = (state, name) => {
  state.stateData = name;
}
// 当前指标对比的各项值
export const comparedData = (state, name) => {
  state.comparedData = name;
}
// 当前点击需要生成图的指标数据
export const indexList = (state, name) => {
  state.indexList = name;
}
 // 用来标识添加对比指标框是否出现
export const flags = (state, name) => {
  state.flags = name;
}
// 用来标识左侧菜单栏是否收起
export const isCollapse = (state, name) => {
  state.isCollapse = name;
}

// 移动端控制左侧菜单的显示与隐藏
export const showMenu = (state) => {
  state.isCollapse = !state.isCollapse
  // state.isMenuShow = true
}

export const isMobile = (state) => {
  state.isCollapse = true
  // state.isMenuShow = true
}

export const isPc = (state) => {
  state.isCollapse = false
  // state.isMenuShow = true
}
// export const hideMenu = (state) => {
//   state.isMenu = false
// }